package _99练习;

<<<<<<< HEAD
/**
 * @author Administrator
 */
=======

>>>>>>> 1c69d32fc055e0010098b09f71795769d9a12acd
public class SellBun extends Thread {

	int count = 1000;

	@Override
	public void run() {

		while (count > 0) {
			count--;
			System.out.println(Thread.currentThread().getName() + "吃掉一个包子，剩下" + count + "个");
			try {
				Thread.sleep(100);

			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		System.out.println(Thread.currentThread().getName() + "吃完了");

	}

}
